﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Plane
{
    internal class Program
    {
        static void Main(string[] args)
        {
            AllPlane plane1 = new Helicopter();
            AllPlane plane2 = new AirPlane();
            AllPlane plane3 = new Fighter();
            AllPlane plane4 = new Harrier();

            Console.WriteLine(plane1.TakeOff());
            Console.WriteLine(plane1.SonicFly());
            Console.WriteLine(plane2.TakeOff());
            Console.WriteLine(plane2.SonicFly());
            Console.WriteLine(plane3.TakeOff());
            Console.WriteLine(plane3.SonicFly());
            Console.WriteLine(plane4.TakeOff());
            Console.WriteLine(plane4.SonicFly());

            Console.ReadLine();
        }
    }
}
